
package cz.czu.pef.DataModelling.domainObjects;

import java.util.*;

public class MedicalExaminationType extends CommonObjectImpl implements IdObject
{
  private static final long serialVersionUID = -8074343845482638071L;

  /*
   * Entity attributes (some inherited).
   */

  /*
	 * Relations
	 */
	private Set<MedicalExaminationTypeForRoleType> medicalExaminationTypeForRoleTypes;
	private Set<MedicalExamination> medicalExaminations;

	public MedicalExaminationType()
	{
		super(null, null, null);
	}

	public MedicalExaminationType(String medicalExaminationTypeCode, String medicalExaminationTypeName, String medicalExaminationTypeDescription)
	{
		super(medicalExaminationTypeCode, medicalExaminationTypeName, medicalExaminationTypeDescription);
	}

	public Set<MedicalExamination> getMedicalExaminations()
	{
		return medicalExaminations;
	}

	public List<MedicalExamination> getMedicalExaminationsAsList()
	{
		return new ArrayList<MedicalExamination>(getMedicalExaminations());
	}

	public Set<MedicalExaminationTypeForRoleType> getMedicalExaminationTypeForRoleTypes()
	{
		return medicalExaminationTypeForRoleTypes;
	}

	public List<MedicalExaminationTypeForRoleType> getMedicalExaminationTypeForRoleTypesAsList()
	{
		return new ArrayList<MedicalExaminationTypeForRoleType>(getMedicalExaminationTypeForRoleTypes());
	}

  
  public void setMedicalExaminationTypeForRoleTypes(Set<MedicalExaminationTypeForRoleType> medicalExaminationTypeForRoleTypes)
  {
    this.medicalExaminationTypeForRoleTypes = medicalExaminationTypeForRoleTypes;
  }

  
  public void setMedicalExaminations(Set<MedicalExamination> medicalExaminations)
  {
    this.medicalExaminations = medicalExaminations;
  }

  public String toString()
  {
      StringBuilder builder = new StringBuilder();
      builder.append("MedicalExaminationType [toString()=");
      builder.append(super.toString());
      builder.append("]");
      return builder.toString();
  }
}